<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>邮箱激活提示</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="../static/layui/css/layui.css"  media="all">
  <script src="../static/layui/layui.js"></script>
</head>
<body>
<blockquote class="layui-elem-quote">
  账户激活
</blockquote>
<script type="text/javascript">
  window.onload = function(){
      var status=[[${status}]];
      if(status==1){
    	  layui.use('layer', function(){ 
    	  layer.open({
    	        type: 1
    	        ,title: false //不显示标题栏
    	        ,closeBtn: false
    	        ,area: '300px;'
    	        ,shade: 0.8
    	        ,id: 'LAY_layuipro' //设定一个id，防止重复弹出
    	        ,btn: ['马上登录']
    	        ,btnAlign: 'c'
    	        ,moveType: 1 //拖拽模式，0或者1
    	        ,content: '<div style="padding: 50px; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">恭喜你,账户已经激活</div>'
    	        ,success: function(layero){
    	          var btn = layero.find('.layui-layer-btn');
    	          btn.find('.layui-layer-btn0').attr({
    	            href: '/'
    	          });
    	        }
    	 	});
    	  }); 
      }else if(status==2){
    	  alert("邮箱已激活，请勿重复激活");
    	  window.location.href="/";
      }else if(status==3){
    	  alert("邮箱激活失败，请联系管理员修理");
    	  window.location.href="/";
      }
  }
  </script>
</body>
</html>